home *** CD-ROM | disk | FTP | other *** search
/ 3D Games (Spidla) / 3dhry2.iso / Tank Wars 3D / src / TANKWARS.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  2003-03-17  |  795 b   |  33 lines

  1. #include "tankwars.h"
  2.  
  3. extern bool fullscreen;
  4. extern bool active;
  5.  
  6. int screen_w, screen_h;
  7.  
  8. int heightmap[31][21];
  9. unsigned char lightmap[30][20];
  10.  
  11. int gamestart(void)
  12. {
  13.     MSG        msg;                        // Windows Message Structure
  14.  
  15.     // Resolution:
  16.     screen_w=640;
  17.     screen_h=480;
  18.  
  19.     // Ask The User Which Screen Mode They Prefer
  20.     //if (MessageBox(NULL,"Would You Like To Run In Fullscreen Mode?", "Start FullScreen?", MB_YESNO)==IDNO)
  21.     //    fullscreen=FALSE;                            // Windowed Mode
  22.     // Create Our OpenGL Window
  23.     if (!CreateGLWindow("Tank Wars 3D",screen_w,screen_h,16,fullscreen))
  24.         return 0;                                    // Quit If Window Was Not Created
  25.  
  26.     gameinit();
  27.     playintro();
  28.     maingame();
  29.  
  30.     // Shutdown
  31.     KillGLWindow();                                    // Kill The Window
  32.     return (msg.wParam);                            // Exit The Program
  33. }